/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "工艺配方主表",TableName = "formulasetting",DetailTable =  new Type[] { typeof(formuladetails)},DetailTableCnName = "配方明细",DBServer = "SmesDbContext")]
    public partial class formulasetting:SmesEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="FormulaSetId")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int FormulaSetId { get; set; }

       /// <summary>
       ///配方标识
       /// </summary>
       [Display(Name ="配方标识")]
       [MaxLength(32)]
       [Column(TypeName="nvarchar(32)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string FormulaTag { get; set; }

       /// <summary>
       ///工艺过程
       /// </summary>
       [Display(Name ="工艺过程")]
       [MaxLength(32)]
       [Column(TypeName="nvarchar(32)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string process_stage { get; set; }

       /// <summary>
       ///设备类型
       /// </summary>
       [Display(Name ="设备类型")]
       [MaxLength(32)]
       [Column(TypeName="nvarchar(32)")]
       [Editable(true)]
       public string equipment_type { get; set; }

       /// <summary>
       ///设定最小值
       /// </summary>
       [Display(Name ="设定最小值")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal min_value { get; set; }

       /// <summary>
       ///设定最大值
       /// </summary>
       [Display(Name ="设定最大值")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal max_value { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? last_updated { get; set; }

       [Display(Name ="配方明细")]
       [ForeignKey("FormulaSetId")]
       public List<formuladetails> formuladetails { get; set; }


       
    }
}